package com.project.class8_17.dao.impl;

import com.project.class8_17.bean.EmployeeBean;
import com.project.class8_17.dao.IEmployeeDao;

import java.util.List;

public class EmployeeDaoImpl extends BaseDao implements IEmployeeDao {
    @Override
    public void add(EmployeeBean em) {
        this.insert(em);
    }

    @Override
    public List<EmployeeBean> findByName(String name) {
        return this.find("select * from t_employee where e_name like ?",EmployeeBean.class,"%"+name+"%");
    }
}
